package cn.bon.websocket.pojo.dto;

import cn.bon.websocket.enums.WebsocketMessageTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author: dronff
 * @description:
 * @CreateTime: 2023/12/12 10:28
 **/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class WebsocketMessage {
    /**
     * 信息
     */
    private String msg;
    /**
     * 信息发布时间
     */
    private LocalDateTime time;
    /**
     * 数据
     */
    private Object data;
    /**
     * 消息来源
     */
    private WebsocketMessageTypeEnum source;
    
}
